#ifndef __LS_P2P_CLIENT_H__
#define __LS_P2P_CLIENT_H__

#include "wl_api.h"

/// @brief 
typedef enum{
    P2P_CHANNEL_CMD=0,
    P2P_CHANNEL_VIDEO,
    P2P_CHANNEL_AUDIO,
    P2P_CHANNEL_MAX,
}P2P_CHANNEL_E;


typedef void (*p2p_recvOnlisten)(P2P_CHANNEL_E channel,const char *data,uint32_t datalen);
typedef void (*p2p_OnConnectStatus)(uint8_t status);


/// @brief 初始化p2p
/// @return 
int ls_p2p_client_init(p2p_recvOnlisten lr,p2p_OnConnectStatus ls);


/// @brief 发送数据
/// @return 
int ls_p2p_client_send_data(P2P_CHANNEL_E channel,const char *data,uint32_t datalen);


/// @brief 发送数据
/// @return 
int ls_p2p_client_send_data_udp(P2P_CHANNEL_E channel,const char *data,uint32_t datalen);


/// @brief 进入休眠模式
/// @return 
int ls_p2p_client_into_sleep();



#endif